package com.chihsien.springcloud.controller;

import com.chihsien.springcloud.servcie.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @auther chihsien on 2021/5/31
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider messageProvider;
    /**
     * <strong>Title : sendMessage<br>
     *   调用sendMessage---->  messageProvider的send方法
     *   开启输出源通道 通过output通道往消息中间件发送流水通知
     */

    @GetMapping("//sendMessage")
    public String sendMessage(){
        return messageProvider.send();
    }


}
